import 'package:bloc/bloc.dart';
import 'package:flutter/material.dart';

part 'login_page_state.dart';

class LoginPageCubit extends Cubit<LoginPageState> {
  LoginPageCubit() : super(null);

  void login(BuildContext context,int id){
    emit(LoginPageState()..name="zhangchenzhou$id"..age=id..sex="男");
    Future.delayed(Duration(seconds: 3),).then((value) => Navigator.of(context).pushNamed("/main"));
  }
}
